package com.itheima.reggie.service;

import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    //添加购物车
    ShoppingCart add(ShoppingCart shoppingCart);
    //根据当前登入者查看购物车
    List<ShoppingCart> findCartByUserId(Long userId);
    //清空当前用户购物车
    void clean(Long userId);
    //删除购物车选项
    void sub(ShoppingCart shoppingCart,Long userId);
}
